package com.gs.core.service.dao.impl;

import org.hibernate.FlushMode;
import org.hibernate.LockMode;
import org.springframework.dao.DataRetrievalFailureException;
import org.springframework.stereotype.Component;

import com.gs.core.domain.Person;
import com.gs.core.domain.User;
import com.gs.core.service.dao.GsHibernateDAOFacade;
import com.gs.core.service.dao.PersonDAO;

@Component(value="personDAO")
public class PersonHibernateDAO extends GsHibernateDAOFacade implements PersonDAO{

	public Person save(Person person) {
		getHibernateTemplate().save(person);
		getHibernateTemplate().flush();
		return person;
	}
	
}
